import request from '@/utils/request.js'

export function apiSearchSuggestion (q) {
  return request({
    url: '/app/v1_0/suggestion',
    method: 'get',
    params: {
      q
    }
  })
}

// 联想关键字 获得文章 相关api函数
export function apiSearchList ({ q, page, perPage }) {
  return request({
    url: '/app/v1_0/search',
    method: 'get',
    params: {
      q,
      page,
      per_page: perPage

    }
  })
}
